<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateTcmDongqipointDetailTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('tcm_dongqipoint_detail', function (Blueprint $table) {
            $table->increments('id');
            $table->string('name')->nullable()->comment('名称');
            $table->string('pinyin')->nullable()->comment('拼音');
            $table->string('position')->nullable()->comment('所属部位');
            $table->string('picture')->nullable()->comment('图片');
            $table->string('shareImg')->nullable()->comment('分享图片');
            $table->text('indications')->nullable()->comment('主治');
            $table->text('concretPosition')->nullable()->comment('部位');
            $table->text('locate')->nullable()->comment('取穴');
            $table->text('acupuncture')->nullable()->comment('针刺法');
            $table->text('caution')->nullable()->comment('注意');
            $table->text('application')->nullable()->comment('应用');
            $table->timestamps();
            $table->softDeletes();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('tcm_dongqipoint_detail');
    }
}
